﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BaiVietList.ascx.cs" Inherits="CMS.Web.Template.BaiVietList" %>
<table style="border-collapse: collapse;" align="center" cellspacing="0" cellpadding="0" width="98%" border="0">
    <tr>
        <td height="10px" align="left" style="padding-top: 5px; padding-bottom: 5px;">
            <asp:Label ID="lblTenTheLoai" Runat="server" CssClass="News_Header"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="text-align:center" valign="top">     
            <asp:GridView ID="grdArticles" runat="server" AutoGenerateColumns="false" AllowPaging="True" Width="100%" PageSize="10" DataKeyNames="id"
                EmptyDataText="Không có bài viêt nào!" EmptyDataRowStyle-CssClass="Row_Error" GridLines="None" OnRowCreated="grdArticles_RowCreated" CellPadding="2" BorderColor="#B0B0B5" BorderWidth="0" 
                CssClass="Table_Border" ShowHeader="false" ShowFooter="false" OnPageIndexChanging="grdArticles_PageIndexChanging">
                <Columns>                                    
                    <asp:TemplateField HeaderStyle-Width="100%" ItemStyle-Width="100%" ItemStyle-BorderWidth="0">
                        <ItemStyle HorizontalAlign="Left" />
                        <ItemTemplate>                            
	                        <table id="tblMainArticles" runat="server" width="100%" cellpadding="3" cellspacing="0"  Visible="false">
		                        <tr>
			                        <td>
			                            <table id="tblImg" runat="server" width="130" cellpadding="3" cellspacing="0" align="left">
			                                <tr>
			                                    <td align="left">
			                                        <asp:Image ID="imgImage" Runat="server" Width="130" Height="100" BorderWidth="1" ImageAlign="Left" Visible="false"></asp:Image>
			                                    </td>
			                                </tr>
			                             </table>		
				                        <asp:LinkButton ID="lblTitle" Runat="server" Font-Bold="True" CssClass="News_Title_Link"></asp:LinkButton><br />                            		                        
				                        <asp:Label ID="lblSummary" Runat="server" CssClass="News_Text_Main"></asp:Label>
			                        </td>
		                        </tr>
	                        </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle CssClass="Row_Page" HorizontalAlign="Right"/>
            </asp:GridView>    
        </td>
    </tr>
    <tr>
        <td align="right"><asp:Label ID="lblCPaging" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td height="10px"></td>
    </tr>
</table>

<script language="javascript">
    function Page_Grid(iCurrentPageIndex){
	    View_AddVar("ARTICLE_PG:"+iCurrentPageIndex);
	    View_Submit();
    }    
</script>